<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    
 <%
	String path = request.getContextPath();
	request.setAttribute("path", path);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>用户登录</title>
			<link rel="stylesheet" type="text/css" href="${path}/common/css/logincss/login.css">
			<script type="text/javascript" src="${path}/common/js/jquery-1.8.3.min.js" ></script>
</head>
<body>
		<!-- login -->
		<div class="top center" >
			<div class="logo center">
				<a href="./index.html" target="_blank"><img src="${path}/common/imge/logo.jpg" style = "height:100%;width:100%;"></a>
			</div>
		</div>
		<form  method="post" action="/user/loginreg/checklogin" class="form center">
		
		<div class = "imgimgimg">
			<img src="${path}/common/imge/loginimg.jpg" style="height:100%;">
		</div>
		
		<div class="login">
			<div class="login_center">
				<div class="login_top">
					<div class="left fl">用户登录</div>
					<div class="right fr">您还不是我们的用户？<a href="/user/loginreg/register" target="_self">立即注册</a></div>
					<div class="clear"></div>
					<div class="xian center"></div>
				</div>
				<center><div style = "display = none;height:12px; width:100%;"><font color ="red">${errormsg}</font></div></center>
				<div class="login_main center">
					<div class="username">账&nbsp;&nbsp;&nbsp;&nbsp;号:&nbsp;<input class="shurukuang" type="text" name="userPhone" placeholder="请输入你的用户名"/></div>
					<div class="username">密&nbsp;&nbsp;&nbsp;&nbsp;码:&nbsp;<input class="shurukuang" type="password" name="userPassword" placeholder="请输入你的密码"/></div>
					<div class="username">
						<div class="left fl">验证码:&nbsp;<input class="yanzhengma" type="text" name="code" placeholder="请输入验证码"/></div>
						<div class="right fl" onclick="changeCode()"><img id = "code" src="/user/code" style = "height:42px;width:100px"></div>
						<div class="clear"></div>
					</div>
				</div>
				<div><a href="/user/setpwd" class = "wjmm">忘记密码?</a></div>
				<div class="login_submit">
					<input class="submit" type="submit" name="submit" value="立即登录" >
				</div>
				
			</div>
		</div>
		</form>
		<footer>
			<div class="copyright">简体 | 繁体 | English | 常见问题</div>
			<div class="copyright">卓应培训机构</div>
		</footer>
		
	<script type="text/javascript">
			function changeCode() {
				var img = document.getElementById("code");
				img.src="/user/code?"+ new Date().toUTCString();
			}
	</script>
</body>
</html>